package com.rem.spring.xmlTx;

import com.rem.spring.entity.Emp;
import com.rem.spring.xmlTx.service.EmpService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;


@SpringJUnitConfig(locations = "classpath:beans.xml")
public class XmlTxTest {

    @Autowired
    private EmpService empService;

    @Test
    public void test() {
        Emp emp = new Emp();
        emp.setId(1);
        emp.setName("qwe");
        emp.setAge(11);
        emp.setSex("nv");
        empService.updateEmpById(emp);

    }
}
